

package com.hua.service;

import com.hua.pojo.Advice;
import com.hua.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hua
 * @since 2023-12-24
 */
public interface AdviceService extends IService<Advice> {

    //添加用户建议
    int addUserAdvice(Advice newAdvice);

    //根据饭堂id返回对应的建议，时间从新到旧
    Map<String, Object> getCanteenAdviceList(int canteenId, int pageNo, int pageSize);
}
